package com.itheima.api;

/**
 * @author Anomaly
 * @date 2023/2/10 15:34
 */
public class ThreadDemo2 {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 10; i++) {
            System.out.println("输出" + i);
            if (i == 5) Thread.sleep(5000);
        }
    }
}
